当《鱿鱼游戏》强势来袭:“一、二、三,木头人,思密达。”你还在恐惧嘛?

您所在的位置:网站首页 123 木头人 韩语 当《鱿鱼游戏》强势来袭:“一、二、三,木头人,思密达。”你还在恐惧嘛?

当《鱿鱼游戏》强势来袭:“一、二、三,木头人,思密达。”你还在恐惧嘛?

2024-06-22 13:25| 来源: 网络整理| 查看: 265

导语

哈喽哈喽~我是木木子!

今天就是大家期待的——《鱿鱼游戏🦑》之《123木头人》正式的Pygame版本,界面图片都

是超清的画质特好,还搭配了音乐更有激情~

“大头娃娃恐惧症”正在蔓延:“무궁화 꽃이 피었습니다 ”。​​ 

上一期:《鱿鱼游戏🦑》之《碰糖》游戏想看的可以看下啦~

事情是这样的:

闲来无事,在家就是刷刷剧看看综艺,这不?

优酷举行2022精品先鉴会,会上官宣了一波新剧集和综艺,其中,一档名为《鱿鱼的胜利》的

综艺不仅引起了网友的注意,也引起了我的注意。

据介绍,《🦑鱿鱼的胜利》是一次智力与体力的大挑战,也是“一场大型儿时游戏回忆杀”。

看着介绍文案中的“挑战”、“儿时游戏”等关键字眼,再加上海报上粉红色的圆圈、三角、方块元

素,这和美国流媒体播放平台奈飞公司最近的爆款剧集《🦑鱿鱼游戏》不能说是毫无关系,简

直是一模一样……

于是,我的灵感一现,苦于上一期文章《鱿鱼游戏》之《碰糖》没有火起来,我想着肯定是图

案太简单了,大家感觉没什么难度,没什么视觉效果~SO,小编肝了几天几夜终于给大家写出

了这款超级《🦑鱿鱼游戏》之《123木头人🎃》Pygame版本的游戏送给大家!进来康康嘛?

图片

正文 游戏规则:

大家是否对扎双马尾的小娃娃感到恐惧?是否害怕玩“一二三,木头人”游戏?

图片

一个诡异的机械女童的声音,伴随着惊悚急促的背景音,用韩语冰冷的喊道“一、二、三,木头

人,思密达。”以上情景,在近期成为绝大部分网友挥之不去的梦魇。只要顺利在木头人转身之

前到达划定的区域即可游戏完成,没有完成的或者女童转身看到在移动的就是敌人即游戏失败

​一、准备中

既然是《123木头人》的游戏那素材也是找的跟《鱿鱼游戏》类似的,如下即是相应素材👇👇

1)图片素材

2)音乐、背景

3)环境安装

本文用到的环境如下:Python3、Pycharm、Pygame模块以及部分自带模块。

模块安装:pip install -i https://pypi.douban.com/simple/ +模块名 二、代码演示

主程序:

import pygame, sys, random from random import randrange pygame.init() screen = pygame.display.set_mode((1024,768)) clock = pygame.time.Clock() game_font = pygame.font.Font('04B_19.ttf',40) small_font = pygame.font.Font('04B_19.ttf',10) bg_surface = pygame.image.load('bk5.png').convert() man_movement = 0.0 man_status = 0 # 0 stand 1 run move_speed = 1.0 move_timer = 10 otherman_status = 0 score = 0 man_run1 = pygame.image.load('man/man_1.png').convert_alpha() man_run2 = pygame.image.load('man/man_2.png').convert_alpha() man_run3 = pygame.image.load('man/man_3.png').convert_alpha() man_run4 = pygame.image.load('man/man_4.png').convert_alpha() man_run5 = pygame.image.load('man/man_5.png').convert_alpha() man_run6 = pygame.image.load('man/man_6.png').convert_alpha() man_run7 = pygame.image.load('man/man_7.png').convert_alpha() pman_surface1 = pygame.image.load('man/man_1.png').convert_alpha() pman_surface2 = pygame.image.load('man/man_2.png').convert_alpha() pman_surface3 = pygame.image.load('man/man_3.png').convert_alpha() pman_surface4 = pygame.image.load('man/man_4.png').convert_alpha() pman_surface5 = pygame.image.load('man/man_5.png').convert_alpha() pman_surface6 = pygame.image.load('man/man_6.png').convert_alpha() pman_surface7 = pygame.image.load('man/man_7.png').convert_alpha() pman_frames = [man_run1,man_run2,man_run3,man_run4,man_run5,man_run6,man_run7] pman_index = 0 pmanFLAP = pygame.USEREVENT + 4 pygame.time.set_timer(pmanFLAP,20) pman_list = [] biggirl_run0 = pygame.image.load('girl/girl_0.png').convert_alpha() biggirl_run1 = pygame.image.load('girl/girl_1.png').convert_alpha() biggirl_run2 = pygame.image.load('girl/girl_2.png').convert_alpha() biggirl_run3 = pygame.image.load('girl/girl_3.png').convert_alpha() biggirl_run4 = pygame.image.load('girl/girl_4.png').convert_alpha() biggirl_run5 = pygame.image.load('girl/girl_5.png').convert_alpha() biggirl_run6 = pygame.image.load('girl/girl_6.png').convert_alpha() man_frames = [man_run1,man_run2,man_run3,man_run4,man_run5,man_run6,man_run7] man_index = 0 man_surface = man_frames[0] man_rect = man_surface.get_rect(center = (100,700)) manFLAP = pygame.USEREVENT + 1 pos_x = 100 pos_y = 700 pygame.time.set_timer(manFLAP,20) light_status = 0 biggirl_frames = [biggirl_run6,biggirl_run5,biggirl_run4,biggirl_run3,biggirl_run2, biggirl_run1,biggirl_run0,biggirl_run0,biggirl_run0,biggirl_run1, biggirl_run2,biggirl_run3,biggirl_run4,biggirl_run5,biggirl_run6] biggirl_index = 0 biggirl_surface = biggirl_frames[0] biggirl_rect = biggirl_surface.get_rect(center = (850,100)) biggirlFLAP = pygame.USEREVENT + 2 pygame.time.set_timer(biggirlFLAP,200) gameover_status = 0 score_sound_countdown = 100 def biggirl_animation(): new_man = biggirl_frames[biggirl_index] new_man_rect = new_man.get_rect(center = (biggirl_rect.centerx,biggirl_rect.centery)) return new_man,new_man_rect def man_animation(): new_man = man_frames[man_index] new_man_rect = new_man.get_rect(center = (man_rect.centerx,man_rect.centery)) return new_man,new_man_rect def pman_animation(): new_pman = pman_frames[pman_index] return new_pman def pman_stand(): new_pman = pman_frames[0] return new_pman def man_stand(): new_man = man_frames[0] new_man_rect = new_man.get_rect(center = (man_rect.centerx,man_rect.centery)) return new_man,new_man_rect def redlight_display(game_state): if (light_status ==1): score_surface = game_font.render("RED LIGHT",True,(255,0,0)) else: score_surface = game_font.render("GREEN LIGHT",True,(0,255,0)) score_rect = score_surface.get_rect(center = (150,50)) screen.blit(score_surface,score_rect) def gameover_display(gameover_status): if (gameover_status ==1 ): gameover_surface = game_font.render("GAME OVER",True,(255,0,0)) gameover_rect = gameover_surface.get_rect(center = (1024/2,768/2)) screen.blit(gameover_surface,gameover_rect) gameover_surface = game_font.render("Press Space to restart",True,(255,0,0)) gameover_rect = gameover_surface.get_rect(center = (1024/2,768/2+50)) screen.blit(gameover_surface,gameover_rect) if (gameover_status ==2 ): gameover_surface = game_font.render("YOU WIN",True,(255,0,0)) gameover_rect = gameover_surface.get_rect(center = (1024/2,768/2)) screen.blit(gameover_surface,gameover_rect) gameover_surface = game_font.render("Press Space to restart",True,(255,0,0)) gameover_rect = gameover_surface.get_rect(center = (1024/2,768/2+50)) screen.blit(gameover_surface,gameover_rect) def move_pmans(pmans): for pman in pmans: if otherman_status ==1 : pman.centerx += 2 pman.centery -= 1 if pman.centery < -10: pmans.remove(pman) return pmans def create_pman(): if gameover_status ==0 : bottom_pman = pman_frames[0].get_rect(center = (randrange(1024)-600,800+randrange(500))) return bottom_pman flap_sound = pygame.mixer.Sound('coin.wav') death_sound = pygame.mixer.Sound('bomb2.wav') song_sound = pygame.mixer.Sound('song.wav') SPAWNpman = pygame.USEREVENT pygame.time.set_timer(SPAWNpman,1200) gameover_status =0 pygame.display.set_caption('Squid Game') while True: if ((biggirl_index>=5) & (biggirl_index


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3